package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 剂量计激活、消记录对象 rp_realdata
 * 
 * @author ruoyi
 * @date 2021-10-29
 */
public class RpRealdata extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long ID;

    /** 主键（激活、消表） */
    @Excel(name = "主键", readConverterExp = "激=活、消表")
    private String rpId;

    /** 厂房编码 */
    @Excel(name = "厂房编码")
    private String rpPlant;

    /** 剂量计编号 */
    @Excel(name = "剂量计编号")
    private String rpCode;

    /** 剂量计IP */
    @Excel(name = "剂量计IP")
    private String rpIp;

    /** 剂量计编码 */
    @Excel(name = "剂量计编码")
    private String rpDosimeter;

    /** 剂量（激活、消表时间） */
    @Excel(name = "剂量", readConverterExp = "激=活、消表时间")
    private Date rpTriggerDate;

    /** 状态（1激活、2消表） */
    @Excel(name = "状态", readConverterExp = "1=激活、2消表")
    private Long rpStatus;

    /** 剂量零级报警值 */
    @Excel(name = "剂量零级报警值")
    private BigDecimal rpDoseLevel0;

    /** 超时报警阈值 */
    @Excel(name = "超时报警阈值")
    private BigDecimal rpCtrTime;

    /** 剂量率一级报警值 */
    @Excel(name = "剂量率一级报警值")
    private BigDecimal rpRateLevel1;

    /** 剂量率二级报警值 */
    @Excel(name = "剂量率二级报警值")
    private BigDecimal rpRateLevel2;

    /** 超时报警次数 */
    @Excel(name = "超时报警次数")
    private BigDecimal rpTimeout;

    /** 剂量计电量预警值 */
    @Excel(name = "剂量计电量预警值")
    private Long rpPowerConst;

    /** 适配器激活ID */
    @Excel(name = "适配器激活ID")
    private String rpRlid;

    public void setID(Long ID) 
    {
        this.ID = ID;
    }

    public Long getID() 
    {
        return ID;
    }
    public void setRpId(String rpId) 
    {
        this.rpId = rpId;
    }

    public String getRpId() 
    {
        return rpId;
    }
    public void setRpPlant(String rpPlant) 
    {
        this.rpPlant = rpPlant;
    }

    public String getRpPlant() 
    {
        return rpPlant;
    }
    public void setRpCode(String rpCode) 
    {
        this.rpCode = rpCode;
    }

    public String getRpCode() 
    {
        return rpCode;
    }
    public void setRpIp(String rpIp) 
    {
        this.rpIp = rpIp;
    }

    public String getRpIp() 
    {
        return rpIp;
    }
    public void setRpDosimeter(String rpDosimeter) 
    {
        this.rpDosimeter = rpDosimeter;
    }

    public String getRpDosimeter() 
    {
        return rpDosimeter;
    }
    public void setRpTriggerDate(Date rpTriggerDate) 
    {
        this.rpTriggerDate = rpTriggerDate;
    }

    public Date getRpTriggerDate() 
    {
        return rpTriggerDate;
    }
    public void setRpStatus(Long rpStatus) 
    {
        this.rpStatus = rpStatus;
    }

    public Long getRpStatus() 
    {
        return rpStatus;
    }
    public void setRpDoseLevel0(BigDecimal rpDoseLevel0) 
    {
        this.rpDoseLevel0 = rpDoseLevel0;
    }

    public BigDecimal getRpDoseLevel0() 
    {
        return rpDoseLevel0;
    }
    public void setRpCtrTime(BigDecimal rpCtrTime) 
    {
        this.rpCtrTime = rpCtrTime;
    }

    public BigDecimal getRpCtrTime() 
    {
        return rpCtrTime;
    }
    public void setRpRateLevel1(BigDecimal rpRateLevel1) 
    {
        this.rpRateLevel1 = rpRateLevel1;
    }

    public BigDecimal getRpRateLevel1() 
    {
        return rpRateLevel1;
    }
    public void setRpRateLevel2(BigDecimal rpRateLevel2) 
    {
        this.rpRateLevel2 = rpRateLevel2;
    }

    public BigDecimal getRpRateLevel2() 
    {
        return rpRateLevel2;
    }
    public void setRpTimeout(BigDecimal rpTimeout) 
    {
        this.rpTimeout = rpTimeout;
    }

    public BigDecimal getRpTimeout() 
    {
        return rpTimeout;
    }
    public void setRpPowerConst(Long rpPowerConst) 
    {
        this.rpPowerConst = rpPowerConst;
    }

    public Long getRpPowerConst() 
    {
        return rpPowerConst;
    }
    public void setRpRlid(String rpRlid) 
    {
        this.rpRlid = rpRlid;
    }

    public String getRpRlid() 
    {
        return rpRlid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("rpId", getRpId())
            .append("rpPlant", getRpPlant())
            .append("rpCode", getRpCode())
            .append("rpIp", getRpIp())
            .append("rpDosimeter", getRpDosimeter())
            .append("rpTriggerDate", getRpTriggerDate())
            .append("rpStatus", getRpStatus())
            .append("rpDoseLevel0", getRpDoseLevel0())
            .append("rpCtrTime", getRpCtrTime())
            .append("rpRateLevel1", getRpRateLevel1())
            .append("rpRateLevel2", getRpRateLevel2())
            .append("rpTimeout", getRpTimeout())
            .append("rpPowerConst", getRpPowerConst())
            .append("rpRlid", getRpRlid())
            .toString();
    }
}
